import request from "@/utils/request";

// 查询期数管理列表
export function listBsQs(query) {
  return request({
    url: "/cm/bsQs/list",
    method: "get",
    params: query
  });
}
// 查询期数下拉
export function queryQsList(query) {
  return request({
    url: "/cm/bsQs/qsList",
    method: "get",
    params: query
  });
}

// 查询期数管理详细
export function getBsQs(qsId) {
  return request({
    url: "/cm/bsQs/" + qsId,
    method: "get"
  });
}
// 根据标段获取新期数
export function queryNewQs(bdId) {
  return request({
    url: "/cm/bsQs/getQs/" + bdId,
    method: "get"
  });
}
// 新增期数管理
export function addBsQs(data) {
  return request({
    url: "/cm/bsQs",
    method: "post",
    data: data
  });
}

// 修改期数管理
export function updateBsQs(data) {
  return request({
    url: "/cm/bsQs",
    method: "put",
    data: data
  });
}

// 删除期数管理
export function delBsQs(qsId) {
  return request({
    url: "/cm/bsQs/" + qsId,
    method: "delete"
  });
}
